import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/home_bill_details_meter_fee_entity.dart';

HomeBillDetailsMeterFeeEntity $HomeBillDetailsMeterFeeEntityFromJson(Map<String, dynamic> json) {
	final HomeBillDetailsMeterFeeEntity homeBillDetailsMeterFeeEntity = HomeBillDetailsMeterFeeEntity();
	final double? itemCost = jsonConvert.convert<double>(json['itemCost']);
	if (itemCost != null) {
		homeBillDetailsMeterFeeEntity.itemCost = itemCost;
	}
	final double? dosageCost = jsonConvert.convert<double>(json['dosageCost']);
	if (dosageCost != null) {
		homeBillDetailsMeterFeeEntity.dosageCost = dosageCost;
	}
	final double? startDosage = jsonConvert.convert<double>(json['startDosage']);
	if (startDosage != null) {
		homeBillDetailsMeterFeeEntity.startDosage = startDosage;
	}
	final double? endDosage = jsonConvert.convert<double>(json['endDosage']);
	if (endDosage != null) {
		homeBillDetailsMeterFeeEntity.endDosage = endDosage;
	}
	final String? unit = jsonConvert.convert<String>(json['unit']);
	if (unit != null) {
		homeBillDetailsMeterFeeEntity.unit = unit;
	}
	return homeBillDetailsMeterFeeEntity;
}

Map<String, dynamic> $HomeBillDetailsMeterFeeEntityToJson(HomeBillDetailsMeterFeeEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['itemCost'] = entity.itemCost;
	data['dosageCost'] = entity.dosageCost;
	data['startDosage'] = entity.startDosage;
	data['endDosage'] = entity.endDosage;
	data['unit'] = entity.unit;
	return data;
}